package com.chinaunicom.service.impl;

import com.chinaunicom.entity.ResponseResult;
import com.chinaunicom.service.TestService;
import org.springframework.stereotype.Service;

/**
 * @author: ruiyanglee
 * @date: 2020-11-07 01:13
 * @description: 服务降级实现
 */

@Service
public class TestFallbackServiceImpl implements TestService {
    public ResponseResult getMsg() {
        return ResponseResult.error().message("获取信息请求失败");
    }

    public ResponseResult getPort() {
        return ResponseResult.error().message("获取端口请求失败");
    }

    public ResponseResult paymentCircuitBreaker(Integer id) {
        return ResponseResult.error().message("id不能为负数");
    }
}
